package com.csh.subject.application.convert;

import com.csh.subject.application.dto.SubjectCategoryDto;
import com.csh.subject.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目Dto的转换
 */
@Mapper
public interface SubjectCategoryDtoConvert {
    SubjectCategoryDtoConvert INSTANCE = Mappers.getMapper(SubjectCategoryDtoConvert.class);

    SubjectCategoryBo convertDtoToBo(SubjectCategoryDto subjectCategoryDto);

    List<SubjectCategoryDto> convertBoToDtoList(List<SubjectCategoryBo> subjectCategoryBoList);

}
